package com.bjsxy.user;
/** .class 静态属性获取class对象*/
public class GetClass2 {
    public static void main(String[] args) {
        // .class静态属性
        Class clazz = User.class;
        Class clazz2 = User.class;
        System.out.println(clazz);
        System.out.println(clazz.getName());
        System.out.println(clazz2 == clazz);//true
    }
}
